<!-- 灯 -->
<template>
  <div class="content_body_left">
    <ul class="content_body_list">
      <li class="item">
        <div class="label">名称：</div>
        <div class="text">{{ prop.info && prop.info.mc }}</div>
      </li>
      <li class="item">
        <div class="label">类型：</div>
        <div class="text">{{ prop.info && prop.info.lx }}</div>
      </li>
      <li class="item">
        <div class="label">功率：</div>
        <div class="text">{{ prop.info && prop.info.gl }}</div>
      </li>
      <li class="item">
        <div class="label">所属灯杆：</div>
        <div class="text">{{ prop.info && prop.info.ssdgmc }}</div>
      </li>
      <li class="item">
        <div class="label">所属变压器：</div>
        <div class="text">{{ prop.info && prop.info.sspdssmc }}</div>
      </li>
      <li class="item">
        <div class="label">地址：</div>
        <div class="text">{{ prop.info && prop.info.dz }}</div>
      </li>
      <li class="item">
        <div class="label">更新时间：</div>
        <div class="text">{{ prop.info && time(prop.info.modifyAt) }}</div>
      </li>
      <li class="item">
        <div class="label">附件：</div>
        <div class="text">{{ prop.info && prop.info.tplj }}</div>
      </li>
    </ul>
  </div>
</template>
<script setup lang='ts'>
import { dayjs } from 'element-plus'
const prop = defineProps(['info'])
//  时间转换
const time = (value: number) => {
  if (!value) return ''
  return dayjs(value).format('YYYY-MM-DD HH:mm:ss')
}
</script>

<style scoped lang="scss"></style>